using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace The_LarX
{
    public class TargetCamera : Camera3D
    {
        public TargetCamera(GameScreen Screen)
            : base(Screen)
        {
            NearPlane = 1;
            FarPlane = 1000;
        }

        public override void Update()
        {
            base.Update();

            Projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, Engine.AspectRatio, NearPlane, FarPlane);
            View = Matrix.CreateLookAt(Position, Target, Vector3.Up);
        }

        public Camera3D CameraToDebug;
        public override void DrawOnDebugMode()
        {
            //base.DrawOnDebugMode();
            //if (CameraToDebug !=null)
                //Engine.RenderManager.DrawBoundingSphere(Actor.SceneObject.WorldBoundingSphere, 26, Color.Red, CameraToDebug);
        }
    }
}